def empDetailInfo(**emp_info):
    if 'name' not in emp_info.keys():
        print('必须有姓名信息。')
    else:
        print(emp_info['name'] + '的信息如下')
        print('部门: ' + emp_info.get('department', ''))
        print('电话号码：' + emp_info.get('phone', ''))
        print('电子邮箱：' + emp_info.get('email', ''))
empDetailInfo(name='张山', department='管理', email='zhangsan@163.com')
print('-'*30)
empDetailInfo(name='李四', department='财务', phone='18711081108')